package com.example.spinning.utils;

import java.util.HashMap;

public class Dict {
    private static HashMap<String,String> map = null;
    private static Dict dict = null;
    private Dict(){
        map  = new HashMap<String,String>();
//        系统维护
        map.put("/organ/getSpecificValue/","机构管理_查询");
        map.put("/organ/add/","机构管理_添加");
        map.put("/organ/update/","机构管理_修改");
        map.put("/organ/delete/","机构管理_删除");

        map.put("/user/getUsersByCondition","人员管理_查询");
        map.put("/register","人员管理_添加");
        map.put("/user/update/","人员管理_修改");
        map.put("/user/delete/","人员管理_删除");

        map.put("/log/getSpecificValue/","系统日志_查询");

        map.put("/role/getSpecificValue","角色管理_查询");
        map.put("/role/add/","角色管理_添加");
        map.put("/role/priv/update/","角色管理_修改");
        map.put("/role/delete/","角色管理_删除");

        map.put("/priv/priv/all","权限管理_查询");
        map.put("/priv/priv/add/","权限管理_添加");
        map.put("/priv/priv/update/","权限管理_修改");
        map.put("/priv/priv/delete/","权限管理_删除");

//        台账管理
        map.put("/inventoryManagement/allProduct","成品库存表_查询");
        map.put("/inventoryManagement/findEndByConditionLike/","成品库存表_查询");
        map.put("/inventoryManagement/get/","成品库存表_查找");
        map.put("/inventoryManagement/addEndProduct/","成品库存表_添加");
        map.put("/inventoryManagement/updateEnd/","成品库存表_修改");
        map.put("/inventoryManagement/del/","成品库存表_删除");


        map.put("/inventoryManagement/allDeliverOrder","出货单_查询");
        map.put("/inventoryManagement/findDeliverByConditionLike/","出货单_查询");
        map.put("/inventoryManagement/getDeliverOrder/","出货单_查询");
        map.put("/inventoryManagement/addDeliverOrder/","出货单_添加");
        map.put("/inventoryManagement/updateDeliver/","出货单_修改");
        map.put("/inventoryManagement/delDeliver/","出货单_删除");

        map.put("/inventoryManagement/allInputStock","入库单_查询");
        map.put("/inventoryManagement/findInputByConditionLike/","入库单_查询");
        map.put("/inventoryManagement/getInputStock/","入库单_查询");
        map.put("/inventoryManagement/addInputStock/","入库单_添加");
        map.put("/inventoryManagement/updateInputStock/","入库单_修改");
        map.put("/inventoryManagement/delInputStock/","入库单_删除");

        map.put("/inventoryManagement/allOutStock","出库单_查询");
        map.put("/inventoryManagement/findOutByConditionLike/","出库单_查询");
        map.put("/inventoryManagement/getOutStock/","出库单_查询");
        map.put("/inventoryManagement/addOutStock/","出库单_添加");
        map.put("/inventoryManagement/updateOutStock/","出库单_修改");
        map.put("/inventoryManagement/delOutStock/","出库单_删除");

//        离线检测质量管理
        map.put("/material/add/","原料质量_添加");
        map.put("/material/delete/","原料质量_删除");
        map.put("/material/update/","原料质量_修改");
        map.put("/material/getByMix/","原料质量_查询");

        map.put("/semiProduct/add/","半成品质量_添加");
        map.put("/semiProduct/delete/","半成品质量_删除");
        map.put("/semiProduct/update/","半成品质量_修改");
        map.put("/semiProduct/getByMix/","半成品质量_查询");

        map.put("/endProduct/add/","成品质量_添加");
        map.put("/endProduct/delete/", "成品质量_删除");
        map.put("/endProduct/update/","成品质量_修改");
        map.put("/endProduct/getByMix/","成品质量_查询");

//        报表与查询系统
        map.put("/dailyReport/add/","产量日报_添加");
        map.put("/dailyReport/delete/","产量日报_删除");
        map.put("/dailyReport/update/","产量日报_修改");
        map.put("/dailyReport/getByMix/","产量日报_查询");

        map.put("/monthlyReport/add/","产量月报_添加");
        map.put("/monthlyReport/delete/","产量月报_删除");
        map.put("/monthlyReport/update/","产量月报_修改");
        map.put("/monthlyReport/getByMix/","产量月报_查询");

        map.put("/yearlyReport/add/","产量年报_添加");
        map.put("/yearlyReport/delete/","产量年报_删除");
        map.put("/yearlyReport/update/","产量年报_修改");
        map.put("/yearlyReport/getByMix/","产量年报_查询");

        map.put("/qualityReport/add/","质量报表_添加");
        map.put("/qualityReport/delete/","质量报表_删除");
        map.put("/qualityReport/update/","质量报表_修改");
        map.put("/qualityReport/getByMix/","质量报表_查询");

//        纱纺工艺管理
        map.put("/craftManagement/selectAllDye/","染色_查询");
        map.put("/craftManagement/selectDyeByMul/","染色_查询");
        map.put("/craftManagement/insertDye/","染色_添加");
        map.put("/craftManagement/deleteDye/","染色_删除");
        map.put("/craftManagement/updateDye/","染色_修改");

        map.put("/craftManagement/selectAllWool/","和毛_查询");
        map.put("/craftManagement/selectWoolByMul/","和毛_查询");
        map.put("/craftManagement/insertWool/","和毛_添加");
        map.put("/craftManagement/deleteWool/","和毛_删除");
        map.put("/craftManagement/updateWool/","和毛_修改");

        map.put("/craftManagement/selectAllCarding/","梳毛_查询");
        map.put("/craftManagement/selectCardingByMul/","梳毛_查询");
        map.put("/craftManagement/insertCarding/","梳毛_添加");
        map.put("/craftManagement/deleteCarding/","梳毛_删除");
        map.put("/craftManagement/updateCarding/","梳毛_修改");

        map.put("/craftManagement/selectAllMuleSpinning125/","细纱(125)_查询");
        map.put("/craftManagement/selectMuleSpinning125ByMul/","细纱(125)_查询");
        map.put("/craftManagement/insertMuleSpinning125/","细纱(125)_添加");
        map.put("/craftManagement/deleteMuleSpinning125/","细纱(125)_删除");
        map.put("/craftManagement/updateMuleSpinning125/","细纱(125)_修改");

        map.put("/craftManagement/selectAllMuleSpinning34/","细纱(34)_查询");
        map.put("/craftManagement/selectMuleSpinning34ByMul/","细纱(34)_查询");
        map.put("/craftManagement/insertMuleSpinning34/","细纱(34)_添加");
        map.put("/craftManagement/deleteMuleSpinning34/","细纱(34)_删除");
        map.put("/craftManagement/updateMuleSpinning34/","细纱(34)_修改");

        map.put("/craftManagement/selectAllSpunYarn/","细纱_查询");
        map.put("/craftManagement/selectSpunYarnByMul/","细纱_查询");
        map.put("/craftManagement/insertSpunYarn/","细纱_添加");
        map.put("/craftManagement/deleteSpunYarn/","细纱_删除");
        map.put("/craftManagement/updateSpunYarn/","细纱_修改");

        map.put("/craftManagement/selectAllSpoolingWorkshop1/","络筒(一车间)_查询");
        map.put("/craftManagement/selectSpoolingWorkshop1ByMul/","络筒(一车间)_查询");
        map.put("/craftManagement/insertSpoolingWorkshop1/","络筒(一车间)_添加");
        map.put("/craftManagement/deleteSpoolingWorkshop1/","络筒(一车间)_删除");
        map.put("/craftManagement/updateSpoolingWorkshop1/","络筒(一车间)_修改");

        map.put("/craftManagement/selectAllSpoolingWorkshop2/","络筒(二车间)_查询");
        map.put("/craftManagement/selectSpoolingWorkshop2ByMul/","络筒(二车间)_查询");
        map.put("/craftManagement/insertSpoolingWorkshop2/","络筒(二车间)_添加");
        map.put("/craftManagement/deleteSpoolingWorkshop2/","络筒(二车间)_删除");
        map.put("/craftManagement/updateSpoolingWorkshop2/","络筒(二车间)_修改");

        map.put("/craftManagement/selectAllSpooling/","络筒_查询");
        map.put("/craftManagement/selectSpoolingByMul/","络筒_查询");
        map.put("/craftManagement/insertSpooling/","络筒_添加");
        map.put("/craftManagement/deleteSpooling/","络筒_删除");
        map.put("/craftManagement/updateSpooling/","络筒_修改");

        map.put("/craftManagement/selectAllDoubling/","并线_查询");
        map.put("/craftManagement/selectDoublingByMul/","并线_查询");
        map.put("/craftManagement/insertDoubling/","并线_添加");
        map.put("/craftManagement/deleteDoubling/","并线_删除");
        map.put("/craftManagement/updateDoubling/","并线_修改");

        map.put("/craftManagement/selectAllTfo/","倍捻_查询");
        map.put("/craftManagement/selectTfoByMul/","倍捻_查询");
        map.put("/craftManagement/insertTfo/","倍捻_添加");
        map.put("/craftManagement/deleteTfo/","倍捻_删除");
        map.put("/craftManagement/updateTfo/","倍捻_修改");

        map.put("/craftManagement/selectAllCombedCotton/","梳棉_查询");
        map.put("/craftManagement/selectCombedCottonByMul/","梳棉_查询");
        map.put("/craftManagement/insertCombedCotton/","梳棉_添加");
        map.put("/craftManagement/deleteCombedCotton/","梳棉_删除");
        map.put("/craftManagement/updateCombedCotton/","梳棉_修改");

        map.put("/craftManagement/selectAllDrawing/","并条_查询");
        map.put("/craftManagement/selectDrawingByMul/","并条_查询");
        map.put("/craftManagement/insertDrawing/","并条_添加");
        map.put("/craftManagement/deleteDrawing/","并条_删除");
        map.put("/craftManagement/updateDrawing/","并条_修改");

        map.put("/craftManagement/selectAllRoving/","粗纱_查询");
        map.put("/craftManagement/selectRovingByMul/","粗纱_查询");
        map.put("/craftManagement/insertRoving/","粗纱_添加");
        map.put("/craftManagement/deleteRoving/","粗纱_删除");
        map.put("/craftManagement/updateRoving/","粗纱_修改");


    }


    public static Dict getInstance(){
        if(dict==null){
            dict= new Dict();
        }
        return dict;
    }
    public String getValue(String key){
        return map.get(key);
    }

}
